package com.xiaxueqi.web.home;

import org.springframework.beans.factory.annotation.Autowired;

import com.niagara.context.SecurityContext;
import com.niagara.security.auth.entity.UserDetail;
import com.niagara.service.base.BaseService;
import com.niagara.web.struts2.CRUDActionSupport;
import com.xiaxueqi.entity.security.AppUser;

public class MyhomeAction extends CRUDActionSupport<AppUser> {
	private static final long serialVersionUID = 1319045820326689425L;

	@Autowired
	private BaseService baseService;

	private UserDetail detail = SecurityContext.getUserDetail();
	private String loginId = detail != null ? detail.getLoginId() : null;

	public String getLoginId() {
		return loginId;
	}

	@Override
	public String delete() throws Exception {
		return null;
	}

	@Override
	public String list() throws Exception {
		return SUCCESS;
	}

	@Override
	protected void prepareModel() throws Exception {
	}

	@Override
	public String save() throws Exception {
		return null;
	}

	@Override
	public String input() throws Exception {
		return null;
	}

	public AppUser getModel() {
		return null;
	}

}
